This is how its done in a lab for sampling. Farms use a similar process only on a much larger scale.:
Isolation of the Sugar, Lactose, and Albumin Proteins from Milk
After the isolation of casein, the milk mixture contains the sugar (lactose) and the protein (albumin).
Heat the milk mixture to...