rubygem-sysinfo provides all your system-independent informations in one handy class.