Actually, even if you had Identify, there is not much indication from the sword itself that it must be put back. If you read the quest log it tells you to do so, though. There is a warning from an elf to replace it if you walk/run away from the area, who should have been made to interrupt you if you tried to teleport.

Sword from the Stone (56KB) - Fake Excalibur