I believe that the enumWindowStations API call should be able to do it, but I cannot decipher the VFP code.
In the WINAPI32.txt file it shows...
Public Declare Function EnumWindowStations Lib "user32" Alias "EnumWindowStationsA" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long
TIA,
Larry