Detecting Progressive .jpg

Hey guys… well I am creating a backend for a company where they have point and click functionality for editing their website. Now, it is a flash website, and my questions is… Is there anyway using php (or any other language for that matter) to test if the picture is a progressive jpg? Because as most of you probably know progressive jpg’s are evil evil things.