To answer this question, align the two molecules, generate a mask around each of them with MAMA, and use the SImilarity command in MAMA. See section 3.3 of the paper MAMA manual.