Never tried it, but you could restore a backup of master with a different name to a running instance and issue:
SELECT *
FROM master.sys.configurations
WHERE name = 'max server memory (MB)';
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato