Can we know whether any distant galaxy is moving away in same direction or in opposite direction w.r.t. our galaxy?
Yes, it can. For instance the Andromeda Galaxy is moving towards us, due to local gravitational attraction but that does not affect the validity of the theory of the expansion of spacetime because one result based on local factors is perfectly compatible with a cosmological theory which, by definition, includes every galaxy.