PsLoggedOn from sysinternals.com does that. Look for the PS Tools package.
Also NTLast from foundstone.com might be useful (displays n last logons).
By the way: Why are you using TELNET? I hope you are at the very least
using NTLMv2 authentification! Better use SSH: http://sshwindows.sourceforge.net/