Have you thought about looking at:
WMIQuery() - Used to execute a query against WMI
TotalMem( $Systemname ) - Determine amount of memory installed using WMI

Either one of these have the functionality you are looking for.

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's