The only way is to communicate with it over i2c bus. Use a microcontroller in i2c master mode.
See the datasheet:
The simplest functional check once you have i2c connected would be to turn on the square wave output on pin 7 of the DS1307 and check that pin for a signal.