Is there a API through which I can fetch all currently available real devices in automation?

Is there an API that I can use to get a list of all the real devices that are now available for automation?