With the given information I believe that you cannot guarantee that the tree is perpendicular to the ground.
For example suppose that all 3 stakes are next to each other on a circle with the tree as center.. That satisfies your hypothesis but does not guarantee that the tree is perpendicular to the ground.