I think it would very much depend on the laws in force in that country, and Marc-André gave the example of France, where they would automatically protect it. They're not protecting just military vessels; they're protecting what they consider to be heritage wrecks. It could be other types of wrecks that would be in their waters that they would protect.
On March 19th, 2018. See this statement in context.