How to tell if a device is supervised