Have you ever seen the output of this shell command "cat /proc/cpuinfo"? I think there you can get out all the information that you need.
To read the information in a C program I would prefer the file manipulation functions like fopen, fgets and so on.