oh yes you will know. most worms i've dealt with look like worms, flat and earthworm looking and long Tapeworm mostly.
there are others. sometimes the bm is held together by a worm...ewww...once i've seen one with many tiny little leggs after my fist flush - im not kidding!
check the worm Picture Gallery and just compare to what you expell or try to imagine what they would have looked like alive if you can't find a match to those pics. you will have to look closer at your poop then you are gonna like to, but for me it's important to know what im dealing with!
happy hunting...excuse my crazy sense of humor but after a while it's hard not to giggle at the things we allow ourselves to say on here! ;-D