IIRC, M2TW can disband units through script. So it may be possible to script it to to make units during a seige and disband the units after the seige.
Though, I could see problems. Like the AI gets units, lifts the seige, then moves their levies out of the town, then the script can no longer find them to disband them. Or the script being unable to handle multiple turn seiges.
Bookmarks