creating an instance of System.runtime.memoryFailpoint and monitoring for an insufficient memory Exception.
Creating an instance of system.runtime.memoryFailpoint and monitoring for an out of memory Exception.
There is no supported application level means determine if the specific amount of memory is available
Using static methods of System.Runtime.MemoryFailPoint and checking the return value
Useful resources, MemoryFailPoint Class