If the Tax Rates are stored in your database, then on your confirm page, you will need to create a record set that returns out the tax rate based on the country which is sent from your check out page. and then you will set the tax session based on the result from your record set.
If you have questions in regard to creating the record set or the session, please let me know.