I need to get hardware and software information of Windows like the information we got from dxdiag
It is simple, you can easily get such information from the registry, or using the System.Management library. It depends greatly on what information you are willing to get. I made a detailed post which explains how you can accomplish this Here it is