If your friend caused the accident, he will be "at fault" for the accident.
Since you gave him permission to use your vehicle, your insurance company may extend coverage to the limits of the coverage you purchased, unless there are unknown policy exclusions.
If the insurance company determines that you have coverage for the accident and they pay your claim, he will not have to pay for totaling your vehicle unless the insurance company seeks damages from him.
Learn more about car insurance in our auto insurance learning center.