Is there an API Function that will return me a list of workstations that are registered on a domain. If there is can someone please let me know what it is, if there isnt, is there another way of finding this out

Thanks