Testing for available memory on a storage card

Hi!
I was wondering if anybody knows how to test the available memory on a storage card. What API(s) do I use ?
Also, is there a way to detect if an application is being run from a storage card ?
Thanks!
Paul
I was wondering if anybody knows how to test the available memory on a storage card. What API(s) do I use ?
Also, is there a way to detect if an application is being run from a storage card ?
Thanks!
Paul