I wouldn't normally grave-dig, but you have a tonne of posts, so I'd guess you're still active. If you're not, then someone might find this quite useful in the future (including myself).
From searching online, I don't think Pascal has any libraries that retrieve system information. I know that other, more documented languages do, however, the libraries differ depending upon which operating system is being used.
From a person who is very new to programming, I can only offer you a common-sense approach, with no actual code, because I don't know how.
For Linux, perhaps you could run the "lshw" command in the background to retrieve information about memory, CPU etc. via the command line. For Windows, you could run the "systeminfo" command to accomplish the same thing. I don't know if you can directly capture the command line output, but you can certainly stream the output to a text file. You could then "read" the text file and selectively grab the data that you need from it.
This is quite a messy way of accomplishing what you need, however, aside from sudo authentication difficulties, it would likely get the job done.