first of all do you want to close them from the internal network (assuming you have router) or from the internet (assuming that you have a NAT enabled router)?
if you doing it from external network then a nat router should stop such ports from being open....
to find out what port does what do this
check out this website
http://www.grc.com/port_XXX.htm(in the XXX insert the port number)
it should give a good explanation..