Yes, this is a very simple extension of what Apple already does today with various OS installers.
The OS gives all applications access to hardware level identifications. This is some of the very detailed information you see in Apple System Profiler.
Like applications, the OS can simply look at...