I believe the information (virtual addresses) you seek is in /proc/pid/maps but any function to extract data would likely have to be a script written to accomplish that task. I guess someone may have written such scripts but I'm not familiar with any.