in windows you can right-click on my-computer icon and chose properties option and from the processor informaion u can google the processor ... also there are softwares that helps u do so like CPU-Z which is a free software that helps u gather information about your computer main devices:http://www.cpuid.com/softwares/cpu-z.html
Press Crt + alt + del and then go to performance tab, if you see1 cpu usage graphs then you have1 core, if you have a quad core u see4, or a duo core you see2.
In C#
Use System.Environment.ProcessorCount
Console.WriteLine(String.Format("Number of Processes : {0}", System.Environment.ProcessorCount));
PorcessorCount represents count of processor in a machine.
theres alot of ways to check ur processor info
1st way : u can open up bios and u will find system info tab or something equivilant there u will find all ur pc info
2nd way : u can just right click my computer and u will find system type ram and everything else except the gpu (vga)
3rd way : you can open up the task manager by pressing Ctrl + Shift + esc and go the the process tab and right click on any process and choose set affinity there u will find the number of cpus that ur using and how many cores (cpu) the program u clicked on is using
Do a Ctrl + Shift + Esc. This will open the Windows Task Manager. Once you are here, go to Performance. Now you should see many boxes in the CPU Usage History section which will identify how many cores you have.
I think you mean you want to do this using JavaScript because you tagged the question with "Web development"
Please try this library, it uses web workers to try estimating processor cores count.