How to get the maximum client memory?

I’m aware that the following code can get the current client memory:

--runs on the client
local memory = game:GetService("Stats"):GetTotalMemoryUsageMb()
print(memory)

However, I’m interested in learning if there’s a way to get the max amount of memory available for a client. I was thinking that If an existing method doesn’t exist, maybe I can fill up the client’s memory somehow and without their experience crashing run the above method and then remove all the things that cause the memory to spike. But I haven’t yet figured out what’s the optimal and safe way to do such a thing.