Not too sure on what you are trying to achieve here, but registers, including ebp, will be changing all the time... Anyway, directly accessing registers will require you to use inline assembly. You could do something along the lines of take a pointer to your first function argument, which should give you somewhat direct access to the stack frame of the current function.
I'm writing a program that involves traversing the stack, and I need to find out how to locate the current base pointer without information about the current function. I know there is a way to do it with just regular C code (as opposed to inline assembly, etc.).