How to capture network logs from Tests/Console

My question:
We have a request when we send, we get response and
in console, we can see the network log.
when click on network log, we have TLS1.2

How to capture the network log details like protocol ?
How to write the assertions to verify the protocol is always TLS1.2

Details (like screenshots):
image