Throughout the remainder of Revelation, the dragon refers to Satan, as it does elsewhere in Scripture (Isa 27:1; Isa 51:9).
The seven heads refer to the city from which Antichrist will reignthe city referred to throughout history as the City of Seven Hills: Rome.
While the seven heads refer to a geographical place, the ten horns refer to Satan's political base. The horns, like the ten toes of Daniel 2, typify the ten-nation confederation that will emerge from the old Roman Empire.