Connect-MsolService return an object once connected, and as far as I can see doesn't add new variables. Maybe you can determine that by running one of the module commands and base it on the execution result of the command:
Get-MsolDomain -ErrorAction SilentlyContinue
if($?)
{
"connected"
}
else
{
"disconnected"
}