What you're looking for is the command merge-base:
git merge-base master feature-branch
will print the best common ancestor of those two branches, i.e. where they forked apart. (The documentation has pretty pretty pictures to clarify some of the interesting cases)