Charlie Sheen and Denise Richards were in court today as the judge pored over what sources say is a shocking report about conditions in Brooke Mueller's home ... TMZ has learned.
As you know ... Brooke is in rehab again after falling off the wagon, and the L.A. County Dept. of Children and Family Services was alarmed enough to take Bob and Max and place them in the care of Charlie's ex-wife, Denise Richards.
The 4-year-old twins were also in court -- along with Brooke's attorneys Lori Howe and Angela di Donato, and Charlie's attorneys Mark Gross and Elise Greenberg.
The real question -- will the judge give the children back to Brooke when she leaves rehab, or is the handwriting on the wall that she just can't kick the habit?