Validations for an excel version in my Servlet.

I have a JSP which allows user to upload an Excel file and i am doing the validations on the server side in my Servlet. In this process, i should only allow Excel file with versions earlier than MS Office Excel 2007. How can i check for this condition? Any insight is highly appreciated.