Home Insurance covers the Dwelling for things such as Fire. It is designed to rebuild your house in the event of a calamity. It may also cover Theft, Valdalism as well as Liability if someone is injured on your property.
Home Warranties cover the Roof, Appliances, Termites, Plumbling; these are variable.
As Gina told you, the Termites (Active Infestation) is usually the responsibility of the Seller.
Good luck and may God bless
If termites are found during the inspection, the bank (your mortgage company) will require that they be remediated. Usually a certification from an exterminator or proof of extermination or exterminating treatment should rectify any problems arising from homeowner's insurance and/or mortgage company. It should be the responsibility of the homeowner (seller) to take care of termites but if your dealing with a short sale and you are responsible, you should contact an exterminator.