The county department of social welfare shall at the request of the court investigate and report to the sheriff or friend of the court the amount necessary for support of the prisoner’s dependents.