This is one of the major problem in the internal combustion engines. I recommend you to get the chapter 12 of the book titled: Internal combustion engine fundamentals.
You can perform the heat balance test on the engine. Though its not a 100% accurate, but it does give you an idea about the heat lost to coolant and heat lost in exhaust gasses. You would still end up majority of the portion in unaccounted loss.