Get environment stuff

How can I know in Visual C++ what kind of CPU I’m using, memory available, max texture size, directx version, etc?