Have you looked at GetDeviceUniqueID?