Check available message of a package

ros2 interface package sensor_msgs

Check which node is available and then see the detail of the node

ros2 node list
ros2 node info {/hardware_status_publisher}

Likewise for topic,

ros2 topic list
ros2 topic info /hardware_status
ros2 interface show hexa_robot_interfaces/msg/HardwareStatus