I have little worms inside my 'pond tank'
EVERYTHING in that tank was taken from a friends pond.. there are snails, cyclops, copepods and worms. There are little segmented red worms, detritus worms and even planeria (flat worms)
Although I do not have any in any of my other tanks, the ones I have seem harmless and just usually stay in the gravel..
Judging just by the pic, I'm not able to identify the type of worm it is.. I'm sorry.
But if it is any of the ones I listed, they're perfectly fine with the snails that are in the pond tank. Although there are no fish in that tank, so I cant speak for that.. I'm sorry.
Hope this helps!