I am developing a windows application which gives the field details --> X.
Where X is -->
Right Click My Computer >
Properties >
The question is tagged with C#, though the actual question asks for any Window API. With the Win32 API the information can be retrieved with SetupDiGetDeviceRegistryProperty(). The steps would be:
According to the documentation the API is available on Windows 2000 and later.