You could try turning on logging for telnet.
Alternatively, code it yourself with winsock