Different Hamiltonians for differential Painlev\'e equations and their identification using a geometric approach