If you're running several retropie instances on Pi devices on the network you'd want to change the hostname so the network recognizes it differently.
You can do this from Emulation Station and you can do this from the terminal
Doing this from SSH terminal:
sudo nano /etc/hosts
edit the text in the terminal to whatever you want and save it using normal nano save command (Ctrl-X exiting, then saving changes, enter to confirm)