I guess you'd have to loop through the constant area of Pike_fp->current_object->prog, looking for a callable with a pointer matching your function.
Constant functions are a bit odd creatures since it's something that doesn't exist on the pike level (would be nice to have, though).
If you make a function to do this, I think it could be useful to have in the core, i.e. in program.{c,h}.