KSC Open API  13.1
Kaspersky Security Center API description
boolean KsnInternal::CheckKsnConnection ( )

Check connection with KSN cloud (or KPSN)

Returns:
(boolean) Returns true if connection checked. Otherwise - false.
Exceptions:
KLSTD::STDE_NOACCESS- Access denied, KLSTD::STDE_NOTPERM - KsnProxy is disabled, KLPRCP::ERR_CANT_CONNECT - Can not connect to KSN.