I agree with the previous response, if you have tools and could perform the barrel installation process it could be done.
Since your upper receiver have no M4 feedramp cuts, it’s better to get a M4 barrel assembly without any M4 feedramps, but if you don’t have any choice the M4 barrel with feedramps would work on the HBAR flat top upper.
As for the buttstock, it’s up to you if you want to convert it to a M4 collapsible buttstock, just get a M4 buttstock kit with carbine buffer tube, carbine action spring, carbine buffer, CAR receiver end plate and buffer tube castle nut.
You also don’t have to change the buttstock now, maybe just get a carbine lower half later on. 
To convert to a military push type pivot pin, your lower receiver have to have a small hole located at the front of the magwell fence, common to the area of the right side of the pivot pin.
If it does have this small hole, then you will need to get a military type push pivot pin, a detent pin and a detent pin spring.
If you don’t have this small hole, gunsmiths like AR15Barrels.com, ADCOfirearms.com, or any competent AR gunsmiths could install the hole in the lower receiver.
There is just a push type pivot pin that KNS Precision makes, and if you don’t want to rework your lower it would be a better choice.
Look at the third product from the top of the KNS webpage (KNS Push Button Pivot Pin .250" DIA):
KNS Precision AR-15 & M16 Gun Parts link