How to detect if a Z-Wave socket is currently available/connected?

Hi,

I am currently writing a PC application and able to switch the status of my Z-Wave socket. But is it possible to detect if the socket is even currently available in advance?