How to collect coordinates with user clicks?

hello everyone,
I have OBJECT A (as reference) and OBJECT B (to be modified), I would like to move some specific vertices of OBJECT B (indentified with dedicated groups, if necessary) on locations on OBJECT A surface, defined by user clicks.

My difficulty is collecting the coordinates on OBJECT B selected by user clicks… how do I do that?

thanks
Giuseppe