There are references to burning buildings and generally destroying them in the Stronghold Builder's Guidebook but there's nothing I recall or can find with a quick read about being stuck in a burning building. Cityscape has rules describing what happens when a decrepit building comes down on top of you but, again, I've found nothing specific about being caught in a blazing building, I'm afraid.