You cannot use a SWIFT code for deposit of your tax refund. If your foreign bank will accept a paper U.S. tax refund check, then the check would be mailed to your foreign address. If not, you would have to establish an account in a U.S. bank to receive the deposit, then execute an international transfer of the funds from the U.S. bank to your foreign bank.