WMIC (Windows Management Interface Command) is a command line tool that returns information about the system where it's run. To open a command line shell, at the bottom of the screen, left side of the taskbar, in the Windows search text box, type cmd. In the menu that appears, select Command Prompt. To learn your computers model, vendor, and serial number, type the command shown below at the command prompt.
wmic cpu get deviceid,numberofcores,numberoflogicalprocessors

This will return the number of Cores/Logical Processors for each CPU on your machine.
More Windows Administration Information:
• Command Line to Get Computers Model, Vendor, and Serial Number
• PowerShell Script to Show Last 5 Errors in Event Log
• WSH to Master Your Computer
• Computer Technician's Guide to Safety
• Disable Indexing to Speed Up Your Computer
• How to Create a Bootable USB Drive
• Common Issues With Windows Firewall
• Configure Windows 10 to Search Windows Only
• How to Share a Folder in Windows 7
• Retrieving Information from Computers Belonging to an Active Directory OU
