Okay, try this script. It will cycle through all the Smart Object layers at the top level and resize them. It will not do any layers in groups.
#target photoshop
var doc = activeDocument
app.preferences.rulerUnits = Units.PIXELS;
var layBounds
for(var i=0;i<doc.layers.length;i++){
doc.activeLayer = doc.layers[i];
layBounds = doc.activeLayer.bounds;
if(doc.activeLayer.kind == 'LayerKind.SMARTOBJECT'){
var ratio =doc.height.value/ (layBounds[3].value-layBounds[1].value);
doc.activeLayer.resize (ratio *100, ratio*100);
layBounds = doc.activeLayer.bounds;
var soCenterX = (layBounds[0].value + layBounds[2].value)/2
var soCenterY = (layBounds[1].value + layBounds[3].value)/2
doc.activeLayer.translate ((doc.width.value/2)-soCenterX, (doc.height.value/2)-soCenterY)
}
}//end for loop