I have no first hand experience with Titan Quest but I don't think customers would accept these versions not working with each other (and you would certainly have seen a lot of topics covering it on the web.
So it's a pretty safe bet to say that you will be able to play together.