I am unsure what the MAC equivalent would be, but in Win 9x, etc. You can run a command called Netstat that shows all active connections....

I am curious why you have come to believe someone is connected to your computer.