With any remotely recent BIOS, you can obtain memory map information by using the BIOS Int 15/AX=E820h call. This will tell you what memory you can use for your OS.
A more detailed explanation on how to detect available memory, and the contents of the BIOS memory map can be found at OSDev.