Quick Tip: See Remote Desktop Connections
To see remote desktop connections (RDP connections):
-type: query user
It will show the connection and the idle time. This way if you are sharing a username, you can see if the account has been idle so you can connect without disrupting the other person.
And to log them off:
-type: logoff /server:server-name-here session-id-here /v
For example:
logoff /server:servername 3 /v