Well, there are a lot of different ways that you could do it depending on your system and your images. I'd recommend looking at the IMAQ Vision Help and at the example programs. You could do pattern matching to find the object that you are looking for and then you would know it's location. Or you could subtract on image from the previous and then threshold and do binary analysis or particle analysis to find the new position. Take a look at the examples and that should give you a better idea.
Cheers,
JR A.
Application Engineer
National Instruments