On windows, see Win32::SystemInfo.
In reply to Re^3: How to get the amount of RAM by BrowserUk in thread How to get the amount of RAM by Anonymous Monk