Check if device is claimed from device

Is there a way to determine from the device if it has been claimed or not? Maybe from a status subscription or some other means?

So the only way I’ve been able to come up with a solution to this is by asking the cloud for the device name.
If the device doesn’t have one or comes back with ‘0’ then it’s unclaimed. However this is reliant on the fact that the device was never named in the past and it’s not claimed and unnamed.

Bit of a hack.