You can’t, unless you set it explicitly. It might be best to make the image taller than needed to account for situations when the header’s height increases (such as when someone resizes font or whatever).
You can measure the height ‘physically’ on your screen, but it may be different from browser to browser. I use a very handy little screen measuring tool called X-Scope.