You can release them to your enemy, ransom them to your enemy (he will pay for them or refuse, in which case they are executed), or you can execute them. This all occurs after the battle sequence has been concluded. I beleive the options arise back on the strat map. Kings and heirs are worth alot of money (in most cases)! Hopefully this is helpful! :)