Hi there and welcome to the WD community.
There’s no WD software that has a defrag feature, lets see if another user can help out with a tip or information on this matter.
If you have windows you can defrag the drive using the windows defragmetation tool:
http://windows.microsoft.com/en-us/windows/improve-performance-defragmenting-hard-disk#1TC=windows-7