If you are using internet connection sharing (only one PC is directly connected to the internet) then put a firewall like zonealarm on the gateway pc and and put the other pc in its trusted computers section, then set it to allow file and printer sharing only in the trusted zone. If on the other hand both are connected to the internet then just firewall them both and put each computer in the other ones trusted zone.