can apple tv access both macbook and imac (or two MacBooks?)

I have two macbook pros.
If I attach Apple TV to my HDTV, can I then use either computer to play home movies?

Follow this Question