version checking InDesign file

Hi All,

I want to develop a program to check in which version dropped file was created.

Thanks,

Rajeev Kumar