The only way to truly know the calories in the food would be to measure it with a bomb calorimeter. But there's nothing left after that process, so it kinda defeats the purpose.
Your best bet is to weight each element and figure them out using charts, etc. Even then it's basically a guesstimation of the actual calories, but it's definitely better than nothing!