foreach (var obj in new ManagementObjectSearcher("select AdapterRAM from Win32_VideoController").Get())
{
var ram = obj.Properties["AdapterRAM"].ToString();
Console.WriteLine("Память: " + ram);
}