Hub ID

How to get the id of a hub?