That is OS, hardware, and compiler dependent. On modern 32- and 64-bit systems you can typically consider it unlimited (as the OS will increase the page file to match the memory requirements of your program).
There is no standard way to get that information. I would look through your compiler's documentation first, then look through your OS's API documentation.