The NETSTAT command can be used to find all “listening” and “established” ports on your Windows computer. From a command prompt run:
netstat -an |find /i "listening" OR netstat -an |find /i "established"
To see all open, established, closing and other used ports type:
netstat -a