docs.microsoft[.]com/en-us/windows-hardware/manufacture/desktop/dism-driver-servicing-command-line-options-s14
DISM /Online /Export-Driver /Destination:C:\destpath
docs.microsoft[.]com/en-us/powershell/module/dism/export-windowsdriver?view=win10-ps
PS C:\> Export-WindowsDriver -Online -Destination d:\drivers
I had talked before about copying the files for installed drivers by copying the folder: C:\Windows\ System32\ DriverStore\ FileRepository. I came across the 2 options above, which basically do the same thing -- whether it's easier to use one of those commands or simply copy the folder is up to you. Copying the folder only works if/when you're signed in to that copy of Windows, and those commands, slightly modified, are supposed to work booting to a WinPE USB stick, so there's that.
So what are those files good for? For some devices some of the drivers needed for that device to work are *ONLY* available in that folder -- Microsoft doesn't have them in its database, and the component manufacturer does not offer downloads. As long as that original copy of Windows still runs, or is upgraded to a newer version, and as long as a Windows version upgrade doesn't wrongly replace any of those drivers [I've had it happen], you're cool. Install Windows fresh OTOH and without a copy of those drivers you might spend long hours online trying to track them down, often relying on driver sites that can be suspect.
That said, the preferred method is to have a good image backup [that you know you can restore] handy, so you don't have to install Windows fresh. That's because even if you have those drivers handy, Windows setup can't/won't use them -- you have to add those in after the fact. That means that if Windows setup doesn't include mission critical drivers for you device, Windows will install, but not run. What then?...
woshub[.]com/integrate-drivers-to-windows-install-media/
docs.microsoft[.]com/en-us/windows-hardware/manufacture/desktop/add-and-remove-drivers-to-an-offline-windows-image
Windows is installed from a .wim image file that contains most of the files it'll use. You can mount that image, much like you'd mount an ISO file, add to it, then save the results to a new .wim image file. IMHO it's not fun. That's why I'm such a fan of image backups.
------------------
Side Note:
Those driver files are stored in a minimalist fashion -- IOW they are Not equivalent to the driver setup files you might download for your graphics card etc. For those driver files that are available to download for things like graphics or the chipset or audio, you're best to run the full setup files once Windows is up & running.