UV editor - Get mesh being edited

Hi all,
is there a way to get the original mesh from the unwrapped one when editing UVs. I would like to add some command to mark texture coordinates but we would need to understand which one is the connected mesh.

Alberto

@andy, @nathanletwory, any ideas here?