“I’m sorry to hear about your accident! Rear-ending someone never feels good; it’s even worse when significant damage occurs.
Since your hood won’t open, it’s likely there’s damage to the latch handle. You can try to pry it open manually with a crowbar or other tool. If that doesn’t work and you’re planning to take your car in for other repairs, you might want to let a mechanic handle it.