How do I check the version of a third-party module?
You can use system_get_info('module',  'devel') function and split version to get number after 7.x-
Or goes with this aproach parsing info file here is a solution from stackoverflow get a module version