sources for df utility or storage devices

Hello!
Can any one tell me where can i get the C file for df utility.
or any mechanism to identify the storage devices attached in the system and
how could i get its properties?

Thanking in advance
regards
Ram