Help seeking an old story

Hi Everyone,

I've been searching for several hours for a particular story that suddenly popped into my mind. I can't find it, and I'm hoping that you might be able to point me at it.

The plot is basically a young man is searching through the house of a deceased person (looking for documents I believe) and enters a room, only to find himself trapped when the door closes behind him. The room is the entrance to an automated suite of rooms which a controlled by a computer. The computer forces the man through a series of drills in wearing heels, makeup, dressing, sexual activity, etc ... all designed to feminise him.

The young man eventually leaves the room (I don't remember how) and, if my memory serves, once he is able to he returns to the room.

Does it ring any bells?

Thanks in Advance

D