$session->getServerName( );

The getServerName() function returns the name of the Domain Manager to which the session is connected.