Hey does anyone know how to read the CPU tempreture & fan speed in software??? I am certain it must be some memory location, but Google has let me down!

EDIT: Oh yes, I am using C#, but any information\language will do. Thanks.
EDIT: Oh yes, I am using C#, but any information\language will do. Thanks.