Massif from the valgrind suite should tell you this. However, you already know that your program is using the stack too extensively, so I'm not sure using it will help you much.
It seems to me you should refactor your code. Unfortunately, C is not Scheme, and the compilers are not required and don't do any tail recursion optimizations. So it may be a good idea to reorganize your function so it is looping instead of calling itself recursively. Here is a good read on Stacks and Recursion Elimination.