Does anybody out there know how I would check to see if a system has an internet connection set up (I don't mean currently connected)?

Also is there a way of determining whether a machine has e-mail set up?