You can check it with netstat -a and search for either port name associated with /etc/services or just the portnumber if it is not listed in /etc/services.
You can see stati like ESTABLISHED and others.
To check remote if a port is available or not, you can use nmap. It doesn't say if this port is currently being used though. Just have a loot at it as additional info
