Does building farms destroy strategic resources?
Since resources are predetermined when the map is created, the game won't look at what gets built there before revealing a strategic resource later in the game; because that is what happens, they are revealed.
That being said, no your farms will not replace the resource, nor will any other builder improvement. Say you build a farm on a hill, and then uranium is revealed there. You can easily replace the farm by building the appropriate mine right over top.
As a bonus piece of info, noted here and from my own experience, building a city over top that resource will not remove it either. So if you happen to build on top of coal, uranium etc, later in the game you will just receive it for free - no improvement needed.