No sure I understand well the term heterogeneity in your question. Do you mean a difference in distribution of the specific variable between the 3 different groups? in this case you could look for non parametric (Kruskall wallis test) or parametric (ANOVA) test looking for the differences between the groups?