using the
WinApi WTSEnumerateServers function you can get a list of all Remote Desktop Servers in a network domain. check the code. tested in Delphi 2007, Delphi 2010, Delphi XE – (Windows Xp, Windows 7, Windows 2008 Server) program GetRemoteDesktops; {$APPTYPE CONSOLE} uses Classes, ...
More...