The command `show telnet` will list all the users currently logged into the switch, both via telnet and ssh.