The question is: Do you think that your "friend" installed something to spy on you?
Probably it is enough just to install a Firewall
and an AntiVirus
If there are Wireless connection you can simply delete the former network profile.
As always with computer security, the question is: What do you want to do with your computer that requires a high level of security?