Section 3. The court imposing a fine under section fifteen A may at any time order it paid in whole or in part to a probation officer, to be paid by him to the spouse or to the city, town, corporation, society or person actually supporting the spouse, child or children, or to the state treasurer for the use of the department of children and families if the child has been committed to said department.