Well you should have the option to spring him, which Im sure will cost a shiny penny. Im thinking he is sitting in county? That could probably do it right there, depending on your sort of county. The county I live in has one of the highest crime rates in the US, so ours brings the suck. Alot of gangs, plus HIGHLY violent multiple offenders and your regular assortment of drunk miscreants, people drugged completely out of their mind, and your average B@E, car booster, and basic derelicts, and since they are so crowded, fish (new inmates) get tossed in with all of them.
He may luck out being 17, and get a broken wrist vs a slap, but this will be his last chance, next time they will send him to the clink for real. You, as his father, most likely have the greatest impact on him at this age. He probably looks up to you more than anything. And I know its hard to see, hell Im only 26 now, but I still look up to my dad for advice and the blah blah. Kids are just terrible and embarrassed to show that stuff, especially infront of their "bros". I know for me personally, my parents being disappointed in me hurt more than any beating I took, any fines I paid, and any court dates I had. Only advice I can give is be a dad, and try to make him see where he is heading. Going to easy/hard on them is so easy to do these days, and only leads to failure. I would be willing to bet your county jail will give you/him a guided tour of sorts, like the show "scared straight". That can be a real eye opener. Best thing is to just sit down and lay it all out on the line, and then thats all you can do, he is becoming his own man from here on out.
I sincerely pray he sees the light and follows a different path. I mean, we as men are easily persuaded (at any age

) to do things we shouldnt do by women and friends. Since your saying hes a good kid, he probably was just suckered into something he knew was wrong to impress his friends. We are all guilty of that.
All in all, maybe he and you need to do more things together and more often until he's a bit more sure of himself and able to say no to the wrong sort of behavior, that truck being an example. Idle hands and all that leads to trouble.
Good luck, and Im hoping and praying for you and yours. Its a hard time Im sure. I have a 6 turning 7/21 yr old girl, and a 4 yr old boy. So my time is soon to be here.