You can disconnect your computer from a network by disabling your network adapter;
(eg: right click the "local area connection" - select "Disable")
At that point in time, nobody can see your computer on the network - you are secure.
However, you will no longer have internet access
Cheers,
Adam