There are four main ways you can overclock a Ryzen CPU. The first three are through BIOS, the second is through Ryzen master.
1: set a manual overclock in BIOS
You can enter BIOS by mashing your motherboard's BIOS key (probably delete or F2) when the PC boots. In BIOS you can set your CPU clock speed (sometimes this is given in GHz/MHz, sometimes as a clock mutiplier of the 100MHz base clock - as an example, 3.5GHz would have a multiplier of 35). You may also be able to overclock the system base clock, but this is usually not recommended because it can cause instability in SSDs, GPUs, and other devices.
You should be able to set your CPU cores to 4.1GHz on a Ryzen 3 3100 without changing any other settings. This would be a good starting point. You might get to 4.3-4.5GHz if you're lucky and/or have a decent cooler.
2. Curve optimiser
On some motherboards, the BIOS may contain "curve optimiser", which is an AMD tool to increase single core boost speed without setting all cores to the same speed. This can allow you to reach much higher single-core boost than is usually possible with Ryzen CPUs (some Ryzen 5000-series CPUs can get to 5GHz on one core with curve optimiser), but it is unlikely that your B450 motherboard will support it.
3. Precision Boost Overdrive and AutoOC
If your BIOS is up to date, B450 motherboards support automatic overclocking through PBO (which automatically raises power limits under load when the CPU's temperature is low) and AutoOC (which allows the CPU to boost higher, though is generally much more conservative than what you can get with curve optimiser or a manual OC). PBO and AutoOC are intended to be used together, but it is possible to choose to use one or the other.
4. Ryzen Master
You can download Ryzen Master from AMD's website. This software tells you which of your CPU's cores is the fastest/best, and lets you manually set different clock speeds for different cores. This can be a useful way to set a high single-core speed on the fastest core (which can improve gaming performance), while leaving the other cores at a lower clock to reduce power usage and improve stability.
For someone who is new to overclocking or otherwise not confident with the specifics of computer hardware, I would recommend PBO and AutoOC or Ryzen Master. Ryzen Master has the advantage that if an overclock fails and your system cannot boot, you don't have to reset CMOS and deal with the more complicated BIOS UI to get settings back, the system should automatically return to its defaults. It is overall less flexible than BIOS, but BIOS does not have the ability to manually set different cores to different speeds (AutoOC and Curve Optimiser allow cores to boost to different speeds, but does not allow you to precisely control it). PBO and AutoOC are also unlikely to cause instability or hardware damage, as the voltage and power limits should be set within a safe range by the motherboard manufacturer, though be aware that this isn't strictly guaranteed, especially considering that your motherboard is made by Biostar, whose motherboards are generally poor-quality.
Be cautious with your overclocking. Don't change any setting without knowing what it does (especially voltages and power limits - make sure you know what part you're changing the voltage for, because what's safe for one part might not be safe for another, e.g. SoC voltage is usually much lower than CPU voltage, so getting them confused could lead to you destroying your SoC with excessive voltage). The safest option for manual overclocking would be to leave all power limits and voltages as they are, or try a slight undervolt - this may cause system crashes if the voltage drops too low, but it won't damage your components. Undervolting is especially useful if you use the stock wraith stealth cooler, as undervolting reduces heat output and makes the CPU easier to cool.
As departedsense said, you may get better results from overclocking your RAM, though Ryzen 3 3100s tend to have more overclocking headrooom than other Ryzen 3000 CPUs (due to their lower stock clock speed). Making sure you're running your RAM in dual channel (i.e. with 2 sticks/DIMMs of the same speed) with XMP enabled is much more important than CPU frequency.
Memory overclocking is also generally safer than CPU overclocking, because there are fewer variables, RAM can handle much higher voltages (most DDR4 is fine at 1.5V) and is usually cheaper to replace if you damage it (unless you have a very high-end kit, in which case there's not much point in overclocking it beyond XMP).
Tools such as Thaiphoon burner and DRAM calculator for Ryzen can be used to aid with memory overclocking, and there are various overclocking options within BIOS and Ryzen Master.