Defrag a drive connected to WDTVLive

Does anyone know how I can defrag a WD Essentials Drive that I have connected to a WDTVLive device. I know I can disconnect it and connect it to my PC, but is there an easier way to do it with software that can see the drive. PerfectDisk 10 and Windows Defrag can not see the drive.