It's tricky. BoM costs for the XB1 and PS4 are very very close to retail costs. Of course neither the retailer nor the manufacturer really make any profit off the units with such a small gap (XB1 was quoted at $471 or so IIRC @ launch, PS4 a similar gap to the $399 figure).
What that doesn't include is :
R&D, all the exec/staff salaries during the ramping up process/ongoing operations, massive advertising expenses, 3rd party payoffs/deals, shipping costs, warehouse costs, trade show expenses, giveaways, warranty replacements, etc, etc, and so on.
And then you have mfg commitments with Foxconn and the like where you have to REALLY hope your sell-through rate is right on target. Make too little and you have nothing to sell customers waiting, make too many and you incur ludicrous expenses warehousing/depreciating stacks and stacks of units. Worst case you have to idle production due to lack of demand, but still have to fulfill the mfg contracts anyway (huge $$ loss).
Beyond the RROD problems, 05 though 07 Xbox financials show how costly launching a console can be. That period alone saw something like 3B+ in the red despite huge sales.
For XB1, we can optimistically say they probably will be negative 1-2B for 2013-2014 purely in XB1 income vs expense. They do have the 360 success/XBLG subscriptions to ease that pain a bit, but it's not all roses. If sales pick up, true profitability should return later on.
Everything I just said also applies to the PS4, though the PS4 is a global smash hit (outside of Japan, where home consoles are basically dead as a doornail and not coming back). PS4 should reach serious profit returns during holiday 2014 and beyond (enough to overcome R&D/marketing/etc).
And despite the WiiU floundering, nobody has ever made the kind of profits in gaming that Nintendo historically has, simply by keeping costs sane, lol.