To view what ports are open in windows 7 / 8 or xp. You open up cmd as administrator and run

netstat -o

You can also type for a more detailled view;

netstat -anb