You won't use ASME Section II Part D. But you can use ASME B31.3, look in Appendix A, Table A-2. For ASTM A 193 Grade B7M bolting, the design stress value is good to 4", actually 4" and less in diameter.
For your sub sea flange (design temp from min to 100 deg F), the design stress is 20 Ksi.