There's a great resource that will help with how to do this.
https://www.sheldonbrown.com/
Sadly, Sheldon passed a short while back, but this comprehensive site is his legacy. If you can't find the info on there, you're not trying ;-)
The bike looks to be a 56/58cm so would probably be fine for a first road bike as long as you're taller than 178cm/5'10"
99% sure this is a Scott CR1 2007.
That bottom bracket is going to be 68mm wide. If the hole in the middle is 24mm it will take a shimano or Campagnolo chainset. If it's 30mm it's had a sram groupset on it, but that's pretty unlikely
There are massive sales on group sets with rim brakes at the moment. Look at Rival from SRAM, 105 from shimano or Potenza from Campagnolo if you want something a little flash.
buy the entire groupset rather than bit by bit. It's a bigger once off hit to the wallet, but everything will be included to do the job and will work together. Merlin cycles, or wiggle/Chain reaction cycles, but you probably knew that;-)
Lot of people love Continental tyres, but I can't live without my Schwalbe pro one tyres.
Again, you'll find lots on sale at the moment.
Don't get direct mount brakes, they won't fit. But otherwise, it's just going to take a stock standard groupset.
I've gotta say, I'd do this though:
https://www.aliexpress.com/item/33019603185.html
Matching bar stem and seatpost really finishes of a bike.
... And I'd put odds on that bar not being a genuine most unless it's stickered and labeled as such, it looks Chinese, but i could certainly be wrong.
If the bottom bracket bearing moves smoothly and easily without much play, just put some grease on it and it will be fine for at least a few thousand kms. If it doesn't, look up the frame on the interwebs, and buy a new bottom bracket that will fit the groupset you've chosen. It will 99% likely be an English bb.
If there is damage to the frame it will be instantly identifiable. It may have a few scratches, but you'll feel a crack that's unsafe as it won't be smooth to run your hands over. Twist the frame in your hands and it shouldn't flex at all. Rear triangle should only deflect a few millimetres when you push the dropouts towards each other firmly (no need to try to crush it) Carbon is a lot stronger and more durable than people think and Scott will have used quality epoxy that will fail gracefully rather than just collapse, it's a safety thing. If it's damaged badly it's going to be very obvious.
MUST!!!
Buy a cheap 5nm torque wrench ($30-$50) and use carbon paste where carbon holds carbon!