If the the pilot is under the hood getting simulated instrument time, the FAA system also allows the safety pilot to log PIC....This is the only way I know off, unless you're refering to a student (qualified on type and not holding a student permit) with an instructor in the other seat, then the 'student' can log PIC as well as the instructor, although he'll log it as 'As flight instructor'...
EA