You can get the script to export the value from a computer here.
The main thing the script does is call WMI to get the DeviceHardwareData value. It’s a real shame that you can’t generate this data yourself. In Microsoft’s own words:
References:
- Gathering Windows AutoPilot hardware details from existing machines
- Use the step-by-step guide to add Autopilot devices and profile
- DevDetail CSP
- Adding devices to Windows Autopilot