To find out if someone is using TeamViewer, click on Extras and then go to Open Logfiles. In the same folder, you should be able to locate a file called connections_incoming.txt. This folder should contain the information you are looking for.