The MediaServer.IsConnected property returns a Boolean value specifying whether or not this MediaServer object is connected to a NetShow Theater server.
Syntax
MediaServer.IsConnected