If your ball is in another player's way, can you legally mark it even if you aren't on the green? Rules Guy has the answer.
Rule 7.1a deals with how to fairly search for a golf ball. It states that a ... actions may be taken to find and identify the ball such as moving grass, or branches for example.