You would need to write one, the script which TomP refers to is not in the public domain. Do some reverse engineering on the file and I'm sure you can pull together your own script for the job.
Apologies for not being clearer, you will have to write your own for this but it should be fairly straight forward as Coligulus states, a bit of reverse engineering should see you with a working script. As I said though, off the top of my head series 40 3rd edition had something different about them that required a variation on the script. If you have a few handsets, make some test data and go from there.
Oh well done guys, the thing i face most in mobile forensics is the capability of knowing if the device was wiped, restored and that date of that event.
Is there any files i should keep on looking at, i know it deffers in different phones.