The Bible doesn't explicitly describe a dragon or beast having three heads cut off, leaving it with seven.
The Book of Revelation describes a beast with seven heads and ten horns (Revelation 13:1). There is no mention of heads being cut off in relation to this beast.
It's possible that the detail you are referring to comes from other sources like folklore or religious interpretation outside of the canonical Bible.