TreeMat is a program which evaluates an additive distance matrix starting from a tree.
Enter your tree in Newick format used by Phylip etc. Such data is generated by programs like Neighbor and Fitch (parts of Phylip).