Export-csv column format

I'm trying to export to csv all disks for each computer from my list. I have computers configured with one, tow of tree disks. Now when I export the result of my script to csv file,I get it in formatted as list format:

ComputerName, Disk
Comp1, C:
Comp1, D:
Comp2, C:
Comp2, D:
I would like to know if it is possible to export this list but as table? If there are more then one disk in computer add a column to the table, something like this:

Actually, the way you're doing it now is the better, "right-er" way to do it. What you're producing is technically hierarchical data, where every computer has one or more drives. CSV sucks for hierarchical data – it's designed for flat data. What you're doing now – one row per computer+drive – is "flattening" the hierarchical data in the best way.

What you've asked to do, where you'd have a column for each possible drive, would result in some computers having empty columns (what if one doesn't have a D: drive, but has an E: drive?), and is harder because you essentially have to combine objects to form an aggregated row.

XML is actually a lot better than storing this kind of data than CSV, because XML supports hierarchies.