qappsrv
Displays a list of all Remote Desktop Session Host servers on the network. Windows commands reference
On Windows File qappsrv.exe
Windows
Displays a list of all Remote Desktop Session Host servers on the network. To find out what's new in the latest version, see What's New in Remote Desktop Services in Windows Server. NOTE: This command is the same as the query termserver command.