hi there,
i don't know a lot about C, but i would suggest that you can use something like fget() or fread() in the following file:
then get the output of the commands like
to get harddisk information.
and so on...
if your question concern some C builtin library that has all of these things already implemented, ignore my answer.
regards
slackie1000