Is there an API, registry key, or some other method I can script which will tell me what, if any, registration keys a local device is associated with?