A student loan has been in default will collection agency still garnish tax return?

If it was a federal student loan, then yes, the collections agency could take your income tax return money. If it was a non-federal loan, then they would not be able. Secondly, federal student loans are can not be discharged, the US always gets paid even when laws are created for private businesses that disallow the same right of collections.