Illustrator:
Type in text
Effect>3D>Extrude & Bevel
Get the settings correct (preview until it looks like you want it), hit Okay
Object>Expand Appearance
Change colors/strokes on the shapes to match the original (Isolate Selected Group first so you can do so)