Answer
The balls will attract each other because of gravitational force between them due to which astronaut will determine which is which.
Work Step by Step
Due to gravitational force between them they will come close to each other. The ball which travels more distance will be hollow and the one which travels small distance will be filled with lead.