What does "if" mean here:
He's a good driver, if a little over-confident
when can I also use it like this?
The "if" here means "even though".
You might expect that a good driver should not be over confident. The speaker here acknowledges that expectation, and says it's true in spite of the occasional over-confidence.
You can use "if" this way under similar circumstances.