There is an utillity called netstat it will/can show all the connections a computer has; ipadress ,port locale, port remote; status. You could use that to check for any connections between your pc and the target pc. Output the netstat data to a file(netstat > netstat_data.txt) and parse it.