Windows block applications access hardware resource. If you want to detect CPU temperature, you must write a driver to access monitor chip and a application to communicate driver. If you don't have monitor chip on your mother-board, it is impossible to detect CPU temperature.

You may see your mother-board to ckeck what chip on your mother-board .
Warning: Error Access IO port may damage your computer.
-------------------------------
License/Use:
-------------------------------
This program and source code is in the public domain.
The author claims no copyright, copyleft, license or
whatsoever for the program .
You may use, reuse, abuse or distribute it's binaries
or source code in any desired way or form, Usage of
binaries or source shall be entirely and without
exception at your own risk.
Winbond W83627EHF, W83627EHG have hardware monitor function. The source code only work on Winbond W83627EHF, W83627EHG .
download source code: driver, C# W83627EHF
download source code: C# W83697HF