I've used the sockets on a 717.
I sometimes wonder what the earth pin is connected to.
The rails, i'd imagine - which will the ground potential for any other exposed metal part of the train. Naturally, this may be some way off actual ground potential measured somewhere else - for instance, a grounding spike near the tracks - but it does't matter as a passenger is never going to experience this.