Just count them up using placeholders. Notice I start with the heads in the leftmost slots and then gradually work them to the right one placeholder at a time (case $8$ is a simple example to illustrate this).
Let H = Head, T = Tail, - = don't care (could be Head or Tail), (nH) = n consecutive Heads.
$10$ in a row max: ($10$H)
(only $1$ occurrence possible)
$9$ in a row max: ($9$H)T or T($9$H)
($2$ occurrences)
$8$ in a row max: ($8$H)T- or T($8$H)T or -T($8$H)
($5$ occurrences)
$7$ in a row max: ($7$H)T-- or T($7$H)T- or -T($7$H)T or --T($7$H)
($12$ occurrences)
$6$ in a row max: ($6$H)T--- or T($6$H)T-- or -T($6$H)T- or --T($6$H)T or ---T($6$H)
($28$ occurrences)
$5$ in a row max: ($5$H)T---- or T($5$H)T--- or -T($5$H)T-- or --T($5$H)T- or ---T($5$H)T or ----T($5$H)
($64$ occurrences)
$4$ in a row max: ($4$H)T----- or T($4$H)T---- or -T($4$H)T--- or --T($4$H)T-- or ---T($4$H)T- or ----T($4$H)T or -----T($4$H)
($144$ occurrences)
Case $4$ is special so it needs extra care. The following patterns match more than once so we have to make sure we only count that trial once as a winner.
($4$H)T----- and -----T($4$H) are case $5$s, not case $4$s, if all - are heads, so subtract these $2$ cases from $144$ to get $142$.
Next we have to make sure we don't double count cases where a string of $4$ consecutive heads can appear twice in the string of length 10. There are $3$ main patterns for that, namely: ($4$H)T($4$H)T, ($4$H)TT($4$H), and T($4$H)T($4$H).
($4$H)T----- collides with ----T($4$H)T if we have ($4$H)T($4$H)T so subtract $1$ from $142$ to get $141$.
($4$H)T----- collides with -----T($4$H) if we have ($4$H)TT($4$H) so subtract $1$ from $141$ to get $140$.
T($4$H)T---- collides with -----T($4$H) if we have T($4$H)T($4$H) so subtract $1$ from $140$ to get $139$.
So we have $144 - 2 - 1 - 1 - 1 = 139$ "corrected" occurrences of case $4$.
Total number of good outcomes is $1 + 2 + 5 + 12 + 28 + 64 + 139 = 251$.
$251 / 1024$ is about $24.5$%.
A slight advantage of this method is you can get a visual of what is happening and you can see how many of each case there are so for example, if you wanted to know $5$+ heads max in a row, just add up cases $5$ thru $10$ which would be $112$ total. A disadvantage is it is more work and is only practical for small numbers of flips such as $10$. If you were looking for $20$+ heads out of $100$ coin flips instead, then don't use this tedious method. Also, if you had asked for $3$+ heads, there would be more special cases to handle so this is not the best method for that situation.