Use the ICISite interface IsStarted property to determine whether a Site is active and available.
Signature:
HRESULT IsStarted([out, retval] BOOL *pVal);
True = Started
False = Stopped
To start or stop a Site via the COM API, refer to:
Starting a Site (Start)
Stopping Site (Stop)