Thank you for posting your question. Based on my research, there isn't any Graph API available where you can fetch the Hardware hash of a device. However, you can extract the Hardware hash information from the device itself directly using a Script when it's enrolled.
Let us know if you have any further questions!