The only way I've seen to determine how effective an attack might be is through using VATS. When you've selected a target, you will see their current health. Part of that health bar will be darkened or blinking. (Don't have the game in front of me now, so I'm not certain which.) This indicates how much damage your attack would do if successful.
I haven't particularly noticed whether distance is a factor for calculating damage of precision weapons like sniper rifles, or how such an effect might scale. However, VATS does appear It appears to take into account the body part selected (headthings like bonuses for head-shots do substantially greater damage, of course) and whether or not you're going to get a sneak attack bonus. Other factors, like applicable perks and other bonusesattacks, are probably includedso I expect range is factored in the calculation as well.
I'm also not sure what happens with targets at extreme distances. I do believe it's possible forUnless a target to be outweapon has some sort of VATS range, while still actually being within weapons range for a skillful player shooting manually.special feature on it (I believesuch as a range-finding scope; I did encounter this oncehaven't completed the game yet, but chose to maneuver closer instead of trying my luck.) But I amso I'm not sure whether a "successful" attack under such conditions would actually do any damageor not these might exist), or if that damage wouldsomeone makes an appropriate mod for your platform, VATS is probably the best you can do. After using VATS with certain weapons for awhile, you might be substantially reducedable to make reasonably accurate guesses by yourself.
I'd suggest playtesting But that's about it a bit when you have some time.