Similar to Kevin's response, I have a section in my web.config performing a similar action, should be something like this I believe -
<match url="^([a-z]*).htm"></match>
<action type="Redirect" url="{R:1}.asp"></action>
This should just redirect any instance of .htm to .asp.