The gremlin documentation says:
Many graph vendors do not allow the user to specify an element ID and in such cases, an exception is thrown.
I assume this refers to only specifying an ID when creating a new vertex or edge, not to the overall use of IDs in queries. So which gremlin implementations do, and which do not allow specifying and ID along with vertex or edge creation?