You seem very self-aware of what's going on here. Honestly, that's a great sign because it's half the battle in and of itself. I agree with you, computers (for me it's video games in particular) are an incredibly easy way to be "rewarded" for actions which are, actually, very easy and where failure has no consequence.
However, the first thing is that "addiction" in this sense means compulsion, which is different to being "addicted" to alcohol or heroin. Detoxing (being "confined" in an environment where your consumption can be monitored and eventually eliminated) is a treatment for people whose bodies have become dependent on a substance like alcohol or hard drugs. What it does is allow their body to adjust to being without the substance, so they don't get very powerful or dangerous withdrawal symptoms and cravings.
So in your case, that isn't going to work.. firstly, because your "addiction" is purely psychological (which is not to downplay it, even with detox a lot of addicts fail to remain abstinent because of the psychological compulsion) and secondly because you can't completely abstain from using a computer. It's 2015, that's not going to happen. For this reason, I would strongly advise against enforced abstinance because it will not provide any permanent solution.
Honestly, rather than focusing on the addictive properties of computers, I would instead look at what it is about your meatspace life which isn't fulfilling enough. In this sense, the best "treatment" I could recommend would probably be some kind of psychotherapy. I don't know if that's a path you'd want, or be able, to walk though. It isn't quick and it certainly isn't easy.
In the short term, my strongest recommendation would just be to manage your time better. Ironically, this is actually something computers make incredibly easy. The basic principle here is that you should always be conscious of what you're doing and when you do do something fun it should be as part of a planned rest period, rather than simply because you have nothing better to do. Allocate fixed time periods for being on the computer and fixed time periods for not, and use alarms or timers to track how much time you spend on each.
A lot of people work on computers, which can cause issues if you're using a PC for work and keep getting distracted. For this, I'd recommend a good Pomodoro app. There are many free ones, and I find it to be a very useful motivational system.
Basically, what I'm getting at is that you can systematize life until it resembles a game. Like in a game, you often have to do stuff which is boring, repetitive or unfulfilling, but you can do it because of the promise of a reward around the corner. The only difference between life and game is that, in a game, the systems are laid out for you while in life you have to create them yourself, but you can apply much the same principles to both. Give yourself time to watch youtube videos or TV shows, or to play games, because it sounds like those are things you genuinely enjoy, but force yourself to earn it first knowing it will actually be better and more rewarding for the grind. Because as it is, it doesn't even sound like you're having fun so much as just killing time.