Currently, the only command (As far as I'm aware) to get names is the 'name' command.
However, that returns the name of the unit, not the player.
The name of the unit just happens to be the same name as the player, however, if you've used setIdentity on the player unit, name will now return the identity's name, and there's no longer a way to get the player name.