system-setting

How to detect CPU speed and H.D.D rpm in objective-c or python

I'm new to objective-c, for an academic reason I need to read CPU speed and H.D.D rpm What is the simplest way to access some system setting in objective-c or python I can choose between objective-c and python for this project, so any help will appriciate ...