Hi Ravi,
As far I know, there is no standard program for your requirement, you need to go for a customized report.
You can use the report RSUSR200 to get the list of inactive users, from this list you need to develop a BDC to deactivate the users. This BDC would be used to lock the users, change the user group, remove roles from the user.
You can then run this report in background on a periodic basis.
Regards,
Laxman