Yes you can log 10 straight hours as Off-Duty instead of sleeper berth as long as you don't sleep in the sleeper berth during that time. I often times pull in at home on my runs and sleep there. Another instance would be if you were to have the truck at a shop and were in a motel, (or happened upon a lot lizzard with a room)
Regs say, 10 hours of consecutive hours of off-duty or any combination of off-duty/sleeper berth but remember, they do have to be accurate as to your actual activities. If you only sleep 4 hours during that 10 hour period, log 6 hours off, 4 hours sleep.