How to detect W5100's phy link down and up

Who can tell me how to dectec W5100’s phy link down and up?

image
Pin 17 is link status LED. You can check it using pin17

W5100 pin17 is Digital ground