Could be the Drive, Cable or South Bridge Controller on the Logic Board?
You might try an External DVD Drive, but without a Drive to run the Apple Hardware Test your best bet is to take the iMac into your Local Apple Service Provider and have them test it.