First, make sure you're not confusing termites with flying ants. The difference between the two:
Flying ants have a pinched waist, and their front wings are larger than the second set of wings.
Termites have a larger midsection and their wings are all the same size.
If you find you're dealing with winged ants here are some things you can do:
You can make insect repellents from many different household items. Peppermint oil, vinegar, and lemon juice all work really well. If you know where the nest is, you would be smart to attack the source. Sprinkle yeast around the nest, and hope that the ants take that back to their queen who will eat it and die. Soap works remarkably well, and you can either mix dish soap with water and pour onto the nest, or lay bars of ivory soap in the corners of your home. Small ant traps will also work for flying ants, and can be bought at most hardware stores.