i can't clearly understand your question, packet sniffing tools can be used to see the contents of the packets passing through the network like (ip,port,protocol etc)
i don't think it can be used to determine a hub/switch is present on the network, since both don't disturb the packet contents