Using the Photon to find WEMO divices on Wifi

I am making a thermostat that also has some household control. I am using your code to control my WEMOs, but was wondering if you new how to discover, devices, and or there names.
Thanks and best regards,
Michael