Such program is extremely easy to write. Take any textbook on Solid State physics (such as the book by Ashcroft & Mermin), and you will find the required expressions in there. I should point out that I know nothing about POSCAR and VASP, but clearly these programes must be using the same basic expressions as given in textbooks.