You have already a miriam web service that can do that for you. We could try to write a small module that is doing the job using the web service in fact. The miriam tools developers are also planning to release a version of their library that would be only local, using the xml file so we could use this one or offer the possibility to use the web service or the local one, when it is available.

see http://www.ebi.ac.uk/miriam/main/mdb?section=ws