I'm writing a C# program where it would be useful to see if someone is running the program via remote desktop and if so, the machine name where the remote desktop is running.
I can get the former using SystemInformation.TerminalServerSession
But is there any way to get the name of the remote machine?