If a project win an auction then you will get your DOT/KSM back after leasing period (96 weeks on Polkadot and 48 weeks on Kusama). If a project does not take parachain slot you will get your DOT/KSM back in a few days after auctions end (current batch). DOT/KSM back to your wallet automatically. No action on your part is required.