If you look at this doc , you will see a list of all of the possible cookies that can be set. You are looking for the hubspotutk cookie which stores the folllowing:
This cookie keeps track of a visitor's identity. It is passed to HubSpot on form submission and used when deduplicating contacts.
It contains an opaque GUID to represent the current visitor.
How can I access a web site visitor's HubSpot contact ID from my web site?
Yes, that's right, Dennis. This is exactly the document that prompted my question.
How do I get hold of this opaque GUID on the browser, and convert it into the actual integer contact ID so that I can query the HubSpot API for details about the site visitor?