For each toss, 2 possible outcomes.
So total possible outcomes for 5 tosses is 2x2x2x2x2=32
All heads is only possible in one way, heads appears in each toss. So the probablity is total number of outcomes for the even over the total number of all outcomes.
So the probablity is 1/32.
Assuming the coin is fair, of course.