Commands:
query session /server:servername
reset session [ID] /server:servername
eg:
reset session 2 /server:10.0.0.1
There is another way to view sessions on GUI
Run -> tsadmin (win2k3) and tsadmin.msc (win2k8)
Reference:
http://www.howtogeek.com/howto/windows/command-line-hack-for-terminal-server-has-exceeded-the-maximum-number-of-allowed-connections/