calculate sockets and cores on Windows