Ping has no knowledge of ports per se. Ports, which are a layer 4 phenomenon, cannot be tested with ICMP. If you want to see if a port is active, you can telnet to the box on the given port.