On a cisco device, you can run show cdp neighbors detail, and for each neighbour, you will see a line showing the capabilities, e.g.:
Platform: cisco WS-C6509-E, Capabilities: Router Switch IGMP
How can you see this for the device you are currently on? show version has the platform, but not the capabilities.