With respect to it rolling dice, adjudicating rules, or other things that make it like a video game.
Yes, the rights to D&D computer games were sold.
But Hasbro is a HUGE company...despite the fact that the rights are owned by another, if they really wanted to they could either purchase the rights back, or as another option simply sub-license the rights or negotiate a license that says they have the right to do X, Y, and Z in DDI, but not A, B, and C.
I think that the only problem with this might be the small risk that the company that does own those software rights insists that Hasbro sign an agreement that is horribly restrictive, demands that they drop all other games they create, and allows the original rights holder to arbitrarily change the terms with no notice to Hasbro.
But honestly, what kind of company would do something like that?